package com.htu.courseService.user.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.htu.courseService.user.entity.User;
import com.htu.courseService.user.vo.UserDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    List<Map<String,String>> getUserPermissionInfo(@Param("username") String username);

    IPage<UserDTO> getUserPage(Page page, @Param("username") String username, @Param("email")String email);

    List<UserDTO> getTeacherInfo(@Param("username") String username);
}
